import type { RouteRecordRaw } from "vue-router"
import afterSale from "./views/after-sale"
import shipping from "./views/shipping";

const routes: RouteRecordRaw[] = [{
  name: "Dashboard",
  path: "/",
  component: () => import("@/views/DashBoard.vue"),
  meta: {
    icon: "HomeFilled",
    name: "工作台",
    menu: true,
  }
}, {
  name: "ProductPart",
  path: "/product/part/list",
  component: () => import("@/views/product_part/ListView.vue"),
  meta: {
    icon: "HelpFilled",
    name: "产品配件管理",
    menu: true,
  }
}, {
  name: "UserList",
  path: "/user/list",
  component: () => import("@/views/user/ListView.vue"),
  meta: {
    icon: "UserFilled",
    name: "用户管理",
    menu: true
  }
}, {
  name: "DictList",
  path: "/dict/list",
  component: () => import("@/views/dict/ListView.vue"),
  meta: {
    icon: "Tools",
    name: "字典管理",
    menu: true,
  }
}, {
  name: "MenuList",
  path: "/menu",
  component: () => import("@/views/menu/ListView.vue"),
  meta: {
    icon: "Menu",
    name: "菜单管理",
    menu: true,
  }
}, {
  name: "RoleAuth",
  path: "/role/auth",
  component: () => import("@/views/role_auth/ListView.vue"),
  meta: {
    icon: "Opportunity",
    name: "角色权限设置",
    menu: true,
  }
}, {
  name: "ExceptionLog",
  path: "/log/exception",
  component: () => import("@/views/log/ExceptionLogView.vue"),
  meta: {
    icon: "QuestionFilled",
    name: "异常日志",
    menu: true,
  }
}, {
  name: "Log",
  path: "/log",
  component: () => import("@/views/log/LogView.vue"),
  meta: {
    icon: "InfoFilled",
    name: "系统日志",
    menu: true,
  }
}]
routes.push(...afterSale);
routes.push(...shipping);

export default routes
